//
//  UIView+UIViewUtils.h
//  HZProgress
//
//  Created by 王会洲 on 16/4/8.
//  Copyright © 2016年 王会洲. All rights reserved.
//

#define hudViewTag                     0x98751237
#import <UIKit/UIKit.h>
#import "MSProgressHUD.h"

@interface UIView (UIViewUtils)

/// 只显示文字提示（自动隐藏）
/// @param indiTitle 提示文案
-(void)showHUDIndicatorAtCenter:(NSString *)indiTitle;
/// 展示提示toast，不自动消失
/// @param title title description
- (void)showHUDAtCenter:(NSString *)title;


/// 只显示文字提示（自动隐藏）
/// @param indiTitle 提示文案
/// @param y 偏移量
- (void)showHUDIndicatorViewAtCenter:(NSString *)indiTitle yOffset:(CGFloat)y;


/// 网络发起loading
- (void)showHUDIndicatorAtCenter;
- (void)showScaleHUDIndicatorAtCenter;




- (void)showHUDCircleAtCenter;
//- (void)showHUDSuccessAtCenter;
- (void)showHUDSuccessAtCenter:(void(^)(void))complated;
-(void)showHUDCircleOnWebView;

-(void)showHUDVerifyingAtCenter;
-(void)showHUDCheckingAtCenter;
-(void)showHUDSuccessAtCenter;

-(void)successAtCenter;
    
/// 关闭loading
- (void)hideHUDIndicatorAtCenter;
- (void)hideDelayed:(NSNumber *)animated;
@end
